actionbar: Don't forall() widgets twice
authorBenjamin Otte <otte@redhat.com>
Mon, 18 Jan 2016 23:53:55 +0000 (00:53 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 19 Jan 2016 02:45:26 +0000 (03:45 +0100)
When using forall(), only list the revealer, which lists the box
containing all the children. When using foreach(), bypass revealer and
box and list all children added to the box.

gtk/gtkactionbar.c

index 84c43a83a4bb419b951e59dfa3a8eba80d96cc08..49374e2ad680841b293689f8976c584d01d962c7 100644 (file)
@@ -141,8 +141,7 @@ gtk_action_bar_forall (GtkContainer *container,
 
   if (include_internals)
     (* callback) (priv->revealer, callback_data);
-  if (priv->box)
+  else if (priv->box)
     gtk_container_forall (GTK_CONTAINER (priv->box), callback, callback_data);
 }